<%@ include file="/WEB-INF/view/include.jsp"%>
<%@page import="ae.pcfc.etks.online.itworx.ehs.web.constants.GlobalConstants"%>
<%@page import="ae.pcfc.etks.online.itworx.ehs.web.entity.DocumentType"%>

<table id="myInbox" class="grdView">
<caption>Document Types</caption>
	<colgroup>
	    <col width="22.5%" />
	    <col width="22.5%" />
	    <col width="22.5%" />
	    <col width="22.5%" />
	    <col width="10%" />
	</colgroup>
	<tr>
	    <th>English Title</th>
	    <th>English Description</th>
	    <th>Arabic Title</th>
	    <th>Arabic Description</th>
	    <th>Actions</th>
	</tr>
                    
	<c:forEach var="documentType" items="${documentTypeList}" varStatus="loopStatus">
		<tr ${loopStatus.index % 2 == 0 ? 'class="grdAltRow"' : ''}>
			<td>${documentType.englishName}</td>
			<td>${documentType.englishDescription}</td>
			<td>${documentType.arabicName}</td>
			<td>${documentType.arabicDescription}</td>
			<td class="actions">
				<c:if test="${documentType.removable}">
					<a href="admin/editDocument.htm?type=manageDocument&docTypeId=${documentType.id}" class="admin_actions fancy_popup_mange_doc iframe"><img src="resources/images/common/view_icon.png" title="Edit Document Type" /></a>
					<a id="hrefLink" href="admin/deleteDocument.htm?type=manageDocument&docTypeId=${documentType.id}" class="admin_actions fancy_popup_mange_doc iframe"><img src="resources/images/common/delete.gif" title="Delete Document Type"/></a>
				</c:if>
	        </td>
		</tr>
	</c:forEach>
			
</table>
<div id="fm-submit">
	<a href="admin/newDocument.htm" class='iframe' >
		<span class="btn_border">
			<button type="button" class="btn_bg">Add New Document Type</button> 
		</span>
	</a>
</div>

